<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta content="yes" name="apple-mobile-web-app-capable" />
  <meta name="apple-mobile-web-app-status-bar-style" content="blank">
  <meta content="telephone=no" name="format-detection" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>天瑞商城</title>
  <link rel="stylesheet" href="./css/mreset.css">
  <link rel="stylesheet" href="./css/swiper-3.4.2.min.css">
  <link rel="stylesheet" href="./css/main.css">
  <script src="js/jquery-1.11.3.min.js"></script>
  <script src="js/flexible.js"></script>
  <script src="js/swiper-3.4.2.min.js"></script>
</head>
<body ontouchstart style="background-color: #F8F6F6;">
  <div class="wap">

    <div class="com-bank">
      <div class="bank-header">
        <div>
          <img src="./images/card@2x.png" alt="">
          银行卡1
        </div>
        <div>
          <a href="javascript:;" class="active">编辑</a>
          <a href="javascript:;">删除</a>
        </div>
      </div>
      <div class="bank-body">
        <p>姓名：<span>堡垒王</span></p>
        <p>手机号：<span>180****8888</span></p>
        <p>银行：<span>中国银行</span></p>
        <p>卡号：<span>34544 ****** 121</span></p>
      </div>
    </div>
    <div class="hr"></div>
    <div class="com-bank">
      <div class="bank-header">
        <div>
          <img src="./images/card@2x.png" alt="">
          银行卡1
        </div>
        <div>
          <a href="javascript:;" class="active">编辑</a>
          <a href="javascript:;">删除</a>
        </div>
      </div>
      <div class="bank-body">
        <p>姓名：<span>堡垒王</span></p>
        <p>手机号：<span>180****8888</span></p>
        <p>银行：<span>中国银行</span></p>
        <p>卡号：<span>34544 ****** 121</span></p>
      </div>
    </div>
    <div class="addbank">
        <a href="./addBank.html" style="text-decoration:none;">
      <img src="./images/add_to@2x.png" alt="">
       添加新的银行卡
      </a>
    </div>
    <div class="addnone" style="display: none;">
      <img src="./images/addnone.png" alt="">
      <a href="./addBank.html" class="addyhk">+添加银行卡</a>
    </div>
  </div>
</body>
<script>
  $('.bank-header div a').on('click',function(){
   
    var theHtml = $(this).html();
    if(theHtml == "编辑"){
      window.location.href = "http://192.168.0.38:8000/addBank.html"
    }else{
      $(this).parents('.com-bank').css('display',"none")
    }
  })
</script>
</html>